package com.yuyou.tas.feedback.mapper;

import com.yuyou.tas.service.api.feedback.dto.FeedbackSituationDTO;
import com.yuyou.tas.service.api.feedback.dto.FeedbackSituationMoreVo;
import com.yuyou.tas.service.api.feedback.entity.FeedbackSituation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FeedbackSituationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FeedbackSituation record);

    FeedbackSituation selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FeedbackSituation record);

    void delByFeedId(@Param(value = "feedbackId") Long feedbackId);

    List<FeedbackSituationDTO> findSituationByFeedbackIdType(@Param(value = "feedbackId") Long feedbackId, @Param(value = "type") Integer type);

    List<FeedbackSituationMoreVo> findByFeedbackClassId(@Param(value = "feedbackClassId") Long feedbackClassId);

    List<FeedbackSituation> findAllNeedOperate();
}